class ValidUtil{}
const nameRegular = /^([\u4e00-\u9fa5]{1,2}(?:·[\u4e00-\u9fa5]{1,2})?(?:[\u4e00-\u9fa5]{1,2}|·)?)([\u4e00-\u9fa5]{1,2}(?:·[\u4e00-\u9fa5]{1,2})?(?:[\u4e00-\u9fa5]{1,2}|·)?)*$/
const phoneRegular = /^(1[3-9]\d{9})$/
ValidUtil.isValidName = (name) => nameRegular.test(name);
ValidUtil.isValidPhone = (phone) => phoneRegular.test(phone);
ValidUtil.isValidProductID = (product) => true;
ValidUtil.isValidEmail = (product) => true;

export default ValidUtil;
